﻿using EventsTest.Models;
using Microsoft.AspNet.SignalR.Hubs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace EventsTest.Controllers
{
	public class SignalRtestController : Controller
	{
		public ActionResult Index()
		{
			return View();
		}
	}

	public class Chat : Hub
	{
		public void Send(ChatMessage chat)
		{
			// Call the addMessage method on all clients
			Clients.All.addMessage(chat.username + ": " + chat.message);
		}
	}
}
